﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000F1 RID: 241
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleCollegeDataChangeScNotify : IMessage<BattleCollegeDataChangeScNotify>, IMessage, IEquatable<BattleCollegeDataChangeScNotify>, IDeepCloneable<BattleCollegeDataChangeScNotify>, IBufferMessage
	{
		// Token: 0x17000340 RID: 832
		// (get) Token: 0x06000B19 RID: 2841 RVA: 0x00020FE7 File Offset: 0x0001F1E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleCollegeDataChangeScNotify> Parser
		{
			get
			{
				return BattleCollegeDataChangeScNotify._parser;
			}
		}

		// Token: 0x17000341 RID: 833
		// (get) Token: 0x06000B1A RID: 2842 RVA: 0x00020FEE File Offset: 0x0001F1EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleCollegeDataChangeScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000342 RID: 834
		// (get) Token: 0x06000B1B RID: 2843 RVA: 0x00021000 File Offset: 0x0001F200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleCollegeDataChangeScNotify.Descriptor;
			}
		}

		// Token: 0x06000B1C RID: 2844 RVA: 0x00021007 File Offset: 0x0001F207
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleCollegeDataChangeScNotify()
		{
		}

		// Token: 0x06000B1D RID: 2845 RVA: 0x0002101C File Offset: 0x0001F21C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleCollegeDataChangeScNotify(BattleCollegeDataChangeScNotify other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.finishedCollegeIdList_ = other.finishedCollegeIdList_.Clone();
			this.iAGDNEFGGGM_ = other.iAGDNEFGGGM_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000B1E RID: 2846 RVA: 0x00021079 File Offset: 0x0001F279
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleCollegeDataChangeScNotify Clone()
		{
			return new BattleCollegeDataChangeScNotify(this);
		}

		// Token: 0x17000343 RID: 835
		// (get) Token: 0x06000B1F RID: 2847 RVA: 0x00021081 File Offset: 0x0001F281
		// (set) Token: 0x06000B20 RID: 2848 RVA: 0x00021089 File Offset: 0x0001F289
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17000344 RID: 836
		// (get) Token: 0x06000B21 RID: 2849 RVA: 0x00021092 File Offset: 0x0001F292
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FinishedCollegeIdList
		{
			get
			{
				return this.finishedCollegeIdList_;
			}
		}

		// Token: 0x17000345 RID: 837
		// (get) Token: 0x06000B22 RID: 2850 RVA: 0x0002109A File Offset: 0x0001F29A
		// (set) Token: 0x06000B23 RID: 2851 RVA: 0x000210A2 File Offset: 0x0001F2A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint IAGDNEFGGGM
		{
			get
			{
				return this.iAGDNEFGGGM_;
			}
			set
			{
				this.iAGDNEFGGGM_ = value;
			}
		}

		// Token: 0x06000B24 RID: 2852 RVA: 0x000210AB File Offset: 0x0001F2AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleCollegeDataChangeScNotify);
		}

		// Token: 0x06000B25 RID: 2853 RVA: 0x000210BC File Offset: 0x0001F2BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleCollegeDataChangeScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.finishedCollegeIdList_.Equals(other.finishedCollegeIdList_) && this.IAGDNEFGGGM == other.IAGDNEFGGGM && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000B26 RID: 2854 RVA: 0x00021120 File Offset: 0x0001F320
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			num ^= this.finishedCollegeIdList_.GetHashCode();
			if (this.IAGDNEFGGGM != 0U)
			{
				num ^= this.IAGDNEFGGGM.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000B27 RID: 2855 RVA: 0x00021183 File Offset: 0x0001F383
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000B28 RID: 2856 RVA: 0x0002118B File Offset: 0x0001F38B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000B29 RID: 2857 RVA: 0x00021194 File Offset: 0x0001F394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.finishedCollegeIdList_.WriteTo(ref output, BattleCollegeDataChangeScNotify._repeated_finishedCollegeIdList_codec);
			if (this.IAGDNEFGGGM != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.IAGDNEFGGGM);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000B2A RID: 2858 RVA: 0x00021200 File Offset: 0x0001F400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			num += this.finishedCollegeIdList_.CalculateSize(BattleCollegeDataChangeScNotify._repeated_finishedCollegeIdList_codec);
			if (this.IAGDNEFGGGM != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.IAGDNEFGGGM);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000B2B RID: 2859 RVA: 0x0002126C File Offset: 0x0001F46C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleCollegeDataChangeScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this.finishedCollegeIdList_.Add(other.finishedCollegeIdList_);
			if (other.IAGDNEFGGGM != 0U)
			{
				this.IAGDNEFGGGM = other.IAGDNEFGGGM;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000B2C RID: 2860 RVA: 0x000212E5 File Offset: 0x0001F4E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000B2D RID: 2861 RVA: 0x000212F0 File Offset: 0x0001F4F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 26U)
				{
					if (num == 24U || num == 26U)
					{
						this.finishedCollegeIdList_.AddEntriesFrom(ref input, BattleCollegeDataChangeScNotify._repeated_finishedCollegeIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 32U)
					{
						this.IAGDNEFGGGM = input.ReadUInt32();
						continue;
					}
					if (num == 74U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000487 RID: 1159
		private static readonly MessageParser<BattleCollegeDataChangeScNotify> _parser = new MessageParser<BattleCollegeDataChangeScNotify>(() => new BattleCollegeDataChangeScNotify());

		// Token: 0x04000488 RID: 1160
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000489 RID: 1161
		public const int RewardFieldNumber = 9;

		// Token: 0x0400048A RID: 1162
		private ItemList reward_;

		// Token: 0x0400048B RID: 1163
		public const int FinishedCollegeIdListFieldNumber = 3;

		// Token: 0x0400048C RID: 1164
		private static readonly FieldCodec<uint> _repeated_finishedCollegeIdList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x0400048D RID: 1165
		private readonly RepeatedField<uint> finishedCollegeIdList_ = new RepeatedField<uint>();

		// Token: 0x0400048E RID: 1166
		public const int IAGDNEFGGGMFieldNumber = 4;

		// Token: 0x0400048F RID: 1167
		private uint iAGDNEFGGGM_;
	}
}
